/*
 *
 *  * | Licensed 未经许可不能去掉「OPENIITA」相关版权
 *  * +----------------------------------------------------------------------
 *  * | Author: xw2sy@163.com
 *  * +----------------------------------------------------------------------
 *
 *  Copyright [2024] [OPENIITA]
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * /
 */
package cc.iotkit.manager.dto.vo.biz;

import cc.iotkit.common.excel.convert.ExcelTimestampConvert;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "工单主表")
@Data
public class BizWorkorderReplaceExcelVo implements Serializable {
    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "创建时间",converter = ExcelTimestampConvert.class)
    private Long createAt;

    @ExcelProperty(value = "工单编号")
    private String docNumber;

    @ExcelProperty(value = "客户名称")
    private String tenantName;

    @ExcelProperty(value = "客户姓名")
    private String creator;

    @ExcelProperty(value = "客户联系方式")
    private String creatorPhone;

    //机器人编号
    @ExcelProperty(value = "机器人编号")
    private String robotSn;

    @ExcelProperty(value = "工单描述")
    private String remark;

    @ExcelProperty(value = "创建者")
    private String createUser;

    @ExcelProperty(value = "工单类型")
    private String typeName;

    @ExcelProperty(value = "工单状态")
    private String statusName;

    @ExcelProperty(value = "处理人")
    private String personName;

    @ExcelProperty(value = "处理结果")
    private String result;

    @ExcelProperty(value = "产品名称")
    private String productName;

    @ExcelProperty(value = "产品key")
    private String productKey;

    @ExcelProperty(value = "设备名称")
    private String deviceName;

    @ExcelProperty(value = "设备型号")
    private String modelName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replaceDate;

    @ExcelProperty(value = "更换原因")
    private String reason;

    @ExcelProperty(value = "配件编号")
    private String partCode;

    @ExcelProperty(value = "配件名称")
    private String partName;

    @ExcelProperty(value = "保养周期")
    private Integer maintenancePeriod;

    @ExcelProperty(value = "周期单位")
    private String unitName;

}